package com.wanganui.douyin.config;

import lombok.Getter;
import lombok.Setter;

/**
 * 抖音应用配置
 *
 * @author xtwang
 * @date 2025/3/14 上午10:01
 **/
@Setter
@Getter
public class AgentConfiguration {

    /**
     * 应用Key
     */
    private String clientKey;

    /**
     * 应用秘钥
     */
    private String clientSecret;

    /**
     * 认证类型
     */
    private String authorizationType = "SHA256-RSA2048";

    /**
     * 应用私钥路径
     */
    private String applicationPrivateKeyPath;

    /**
     * 应用公钥路径
     */
    private String applicationPublicKeyPath;

    /**
     * 应用公钥版本
     */
    private String applicationPublicKeyVersion;

    /**
     * 平台私钥路径
     */
    private String platformPrivateKeyPath;

    /**
     * 平台公钥路径
     */
    private String platformPublicKeyPath;


    public AgentConfiguration setApplicationPrivateKeyPath(String applicationPrivateKeyPath) {
        this.applicationPrivateKeyPath = applicationPrivateKeyPath;
        return this;
    }

    public AgentConfiguration setApplicationPublicKeyPath(String applicationPublicKeyPath) {
        this.applicationPublicKeyPath = applicationPublicKeyPath;
        return this;
    }

    public AgentConfiguration setPlatformPrivateKeyPath(String platformPrivateKeyPath) {
        this.platformPrivateKeyPath = platformPrivateKeyPath;
        return this;
    }

    public AgentConfiguration setPlatformPublicKeyPath(String platformPublicKeyPath) {
        this.platformPublicKeyPath = platformPublicKeyPath;
        return this;
    }

    public AgentConfiguration setApplicationPublicKeyVersion(String applicationPublicKeyVersion) {
        this.applicationPublicKeyVersion = applicationPublicKeyVersion;
        return this;
    }

    public AgentConfiguration setAuthorizationType(String authorizationType) {
        this.authorizationType = authorizationType;
        return this;
    }
}
